//
//  PKRequestManager.h
//  PianKe
//
//  Created by lanou on 15/12/22.
//  Copyright (c) 2015年 Bai. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^Finish)(NSData *data);

typedef void(^Error)(NSError *error);

// 定义一个枚举类型 用于记录请求类型
typedef  NS_ENUM(NSInteger, RequestType){
    
    POST,
    
    GET
    
};


@interface HNRequestManager : NSObject

// 封装的请求的方法
+ (void)requestWithUrlString:(NSString *)urlString parDic:(NSDictionary *)parDic method:(RequestType)method finish:(Finish)finish error:(Error)error;


@end
